package com.crealth.db;

import java.util.List;

import com.crealth.manager.MybatisManager;
import com.crealth.model.LoanAmountCalculatedModel;

public class LoanAmountCalculatedDb {

	public static void insertLoanAmountCalculated(LoanAmountCalculatedModel amountCalculated) {
		MybatisManager.amountCalculatedMapper.insertLoanAmountCalculated(amountCalculated);
		MybatisManager.commit();
	}
    
    public static List<LoanAmountCalculatedModel> selectAllLoanAmountCalculated() {
    	List<LoanAmountCalculatedModel> amountls = MybatisManager.amountCalculatedMapper.selectAllLoanAmountCalculated();
    	
    	return amountls;
    }
    
    public static Integer updateLoanAmountCalculatedByID(LoanAmountCalculatedModel amountCalculated) {
    	Integer res = MybatisManager.amountCalculatedMapper.updateLoanAmountCalculatedByID(amountCalculated);
    	MybatisManager.commit();
    	
    	return res;
    }
	
}
